import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter, Routes } from '@angular/router';
// 取消注释并确保导入路径正确
import { AppComponent } from './app/app.component';

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AppHeaderComponent } from './app/component/app-container/app-header/app-header.component';
import { AppContainerComponent } from './app/component/app-container/app-container.component';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { HttpService } from './app/serivce/HttpService';

@NgModule({
  imports: [CommonModule,
    BrowserModule,
    AppRoutingModule,
    AppHeaderComponent,
    AppContainerComponent],
  // 确保 AppComponent 被正确引用
  declarations: [AppComponent],
  bootstrap: [AppComponent],
  providers: [provideZoneChangeDetection({ eventCoalescing: true }), HttpService]

})
export class AppModule { }

